package com.fy.springcloud.feign;

import com.fy.springcloud.feign.fallback.GoodsServiceFeignFallback;
import com.fy.springcloud.feign.fallback.GoodsServiceFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "springcloud-service-goods",
//        fallback = GoodsServiceFeignFallback.class,
        fallbackFactory = GoodsServiceFeignFallbackFactory.class
)
public interface GoodsServiceFeign {

    @GetMapping("/goods/list")
    public List<String> getGoodsList();
}
